import request from '@/utils/request'

export const getPriceModePageApi = async (params: any) => {
    return request.get('/price-mode', { params })
}

export const getPriceModeOptionListApi = async () => {
    return request.get('/price-mode/option-list')
}

export const getPriceModeByIdApi = async (id: string) => {
    return request.get(`/price-mode/${id}`)
}

export const createPriceModeApi = async (data: any) => {
    return request.post('/price-mode', data)
}

export const updatePriceModeApi = async (id: any, data: any) => {
    return request.put(`/price-mode/${id}`, data)
}

export const deletePriceModeApi = async (id: string) => {
    return request.delete(`/price-mode/${id}`)
}
